package cn.tedu.xyh.entity;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class cese {
    public static void main(String[] args) {
     String url = "jdbc:mysql://localhost:3306/test" ;
     String username = "root" ;
     String password = "root" ;
     try{
      Connection con = DriverManager.getConnection(url , username , password ) ;
     }catch(SQLException se){
      System.out.println("数据库连接失败！");
      se.printStackTrace() ;
     }
    }
}
